
new Vue({
  el:'#app',
  data: {
    data: [],
    activeName: 'second',
    main_title : null
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
          
    },
    get_title(e) {
      e.target.id = 'tit'
      this.main_title = e.target.innerHTML
      window.main_title = e.target.innerHTML
      console.log(this.main_title);
      this.aa();
      this.$refs.fm.contentWindow.fmvm.bb()
      e.target.id=''
    }
    ,
    aa() {
      axios.post('http://127.0.0.1:8000/api/get_homework_titile_student').then( (res) => {
        this.data = res.data
        
      })  
    },
  },
  created() {
    this.aa()
  }
})